package com.epam.stringutil;

import org.apache.log4j.Logger;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;

public class TestWatcherTest {
	private static final Logger log = Logger.getLogger(TestWatcherTest.class);
	@Rule
	public TestWatcher testWatcher = new TestWatcher() {
		protected void failed(Throwable e, Description description) {
			log.info("" + description.getDisplayName() + " failed "
					+ e.getMessage());
			super.failed(e, description);
		}

	};

	@Test
	public void test1() {
		Assert.assertEquals(3, 4);
	}
}
